local hx__cuixin = fk.CreateSkill {
  name = "hx__cuixin",
}

hx__cuixin:addEffect(fk.CardUseFinished, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(hx__cuixin.name) and data.card and not table.contains(data.card.skillNames, hx__cuixin.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:askToUseVirtualCard(player, {
      name = data.card.name,
      skill_name = hx__cuixin.name,
      prompt = "#hx__cuixin-choose",
      cancelable = false,
      extra_data = {
        bypass_times = true,
        extraUse = true,
      },
    })
  end,
})


return hx__cuixin
